package com.by.swagger.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "swagger")
public class SwaggerProperties {
    /**
     * 系统名称
     */
    private String title;

    /**
     * 系统描述
     */
    private String description;
    /**
     * 作者
     */
    private String author;

    /**
     * 接口访问地址
     */
    private String url = "http://localhost";

    /**
     * 作者邮箱
     */
    private String email;

    /**
     * 系统版本号
     */
    private String version = "v1.0";
    /**
     * 扫描的控制层基础包名
     */
    private String basePackage="com";
    /**
     * 拦截的接口 默认拦截所有
     */
    private String antPatternPath = "/**";
    /**
     * 是否启用
     */
    private boolean enabled = true;


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getBasePackage() {
        return basePackage;
    }

    public void setBasePackage(String basePackage) {
        this.basePackage = basePackage;
    }

    public String getAntPatternPath() {
        return antPatternPath;
    }

    public void setAntPatternPath(String antPatternPath) {
        this.antPatternPath = antPatternPath;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }
}
